Optimal. Leaf size=78 \[ -\frac {(A-B) \sec ^3(e+f x) (c-c \sin (e+f x))^{5/2}}{3 a^2 c^2 f}-\frac {(A+5 B) \sec (e+f x) \sqrt {c-c \sin (e+f x)}}{3 a^2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.31, antiderivative size = 78, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 38, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.079, Rules used = {2967, 2855, 2673} \[ -\frac {(A-B) \sec ^3(e+f x) (c-c \sin (e+f x))^{5/2}}{3 a^2 c^2 f}-\frac {(A+5 B) \sec (e+f x) \sqrt {c-c \sin (e+f x)}}{3 a^2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2673
Rule 2855
Rule 2967
Rubi steps
\begin {align*} \int \frac {(A+B \sin (e+f x)) \sqrt {c-c \sin (e+f x)}}{(a+a \sin (e+f x))^2} \, dx &=\frac {\int \sec ^4(e+f x) (A+B \sin (e+f x)) (c-c \sin (e+f x))^{5/2} \, dx}{a^2 c^2}\\ &=-\frac {(A-B) \sec ^3(e+f x) (c-c \sin (e+f x))^{5/2}}{3 a^2 c^2 f}+\frac {(A+5 B) \int \sec ^2(e+f x) (c-c \sin (e+f x))^{3/2} \, dx}{6 a^2 c}\\ &=-\frac {(A+5 B) \sec (e+f x) \sqrt {c-c \sin (e+f x)}}{3 a^2 f}-\frac {(A-B) \sec ^3(e+f x) (c-c \sin (e+f x))^{5/2}}{3 a^2 c^2 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.28, size = 87, normalized size = 1.12 \[ -\frac {2 \sqrt {c-c \sin (e+f x)} (A+3 B \sin (e+f x)+2 B)}{3 a^2 f \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (\sin \left (\frac {1}{2} (e+f x)\right )+\cos \left (\frac {1}{2} (e+f x)\right )\right )^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.43, size = 60, normalized size = 0.77 \[ -\frac {2 \, {\left (3 \, B \sin \left (f x + e\right ) + A + 2 \, B\right )} \sqrt {-c \sin \left (f x + e\right ) + c}}{3 \, {\left (a^{2} f \cos \left (f x + e\right ) \sin \left (f x + e\right ) + a^{2} f \cos \left (f x + e\right )\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 1.31, size = 63, normalized size = 0.81 \[ \frac {2 c \left (\sin \left (f x +e \right )-1\right ) \left (3 B \sin \left (f x +e \right )+A +2 B \right )}{3 a^{2} \left (1+\sin \left (f x +e \right )\right ) \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.46, size = 343, normalized size = 4.40 \[ \frac {2 \, {\left (\frac {2 \, B {\left (\sqrt {c} + \frac {3 \, \sqrt {c} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {2 \, \sqrt {c} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {3 \, \sqrt {c} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {\sqrt {c} \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}}\right )}}{{\left (a^{2} + \frac {3 \, a^{2} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {3 \, a^{2} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {a^{2} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}\right )} \sqrt {\frac {\sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 1}} + \frac {A {\left (\sqrt {c} + \frac {2 \, \sqrt {c} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {\sqrt {c} \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}}\right )}}{{\left (a^{2} + \frac {3 \, a^{2} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {3 \, a^{2} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {a^{2} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}}\right )} \sqrt {\frac {\sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 1}}\right )}}{3 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 17.51, size = 137, normalized size = 1.76 \[ \frac {4\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,\sqrt {c-c\,\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}\,\left (B\,3{}\mathrm {i}+2\,A\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}+4\,B\,{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}-B\,{\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}\,3{}\mathrm {i}\right )}{3\,a^2\,f\,{\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}+1{}\mathrm {i}\right )}^3\,\left (1+{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {A \sqrt {- c \sin {\left (e + f x \right )} + c}}{\sin ^{2}{\left (e + f x \right )} + 2 \sin {\left (e + f x \right )} + 1}\, dx + \int \frac {B \sqrt {- c \sin {\left (e + f x \right )} + c} \sin {\left (e + f x \right )}}{\sin ^{2}{\left (e + f x \right )} + 2 \sin {\left (e + f x \right )} + 1}\, dx}{a^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________